home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _0D5BCDFC7B02419F8F707B9416EE0389 < prev    next >
Encoding:
Text File  |  2002-03-26  |  20.4 KB  |  990 lines

  1. {
  2.     \\ CALL VOTE MENU
  3.  
  4.     menuDef 
  5.     {
  6.         name        "ingame_callvote"
  7.         visible        0
  8.         fullscreen    0
  9.         rect        320 50 302 190
  10.         
  11.         onopen 
  12.         { 
  13.             setcvar ui_currentNetMap 0;
  14.             setcvar ui_currentMap    0;
  15.  
  16.             hide grpcallVote ; 
  17.             hide gametype_group;
  18.             hide kick_group;
  19.             hide map_group;
  20.             hide rmg_group;
  21.  
  22.             show misc_group ; 
  23.  
  24.             uiScript loadVoteArenas 
  25.         }
  26.  
  27.         ////////////////////////////////////////////////////////////////////////
  28.         //  Dialog frame
  29.         ////////////////////////////////////////////////////////////////////////
  30.  
  31.         itemDef
  32.         {
  33.             name        window
  34.             style        WINDOW_STYLE_SHADER
  35.             rect        -12 -6 308 196
  36.             background    "gfx/menus/ingame/background.png"
  37.             visible        1
  38.             decoration
  39.         }
  40.  
  41.         itemDef
  42.         {
  43.             name        window
  44.             style        WINDOW_STYLE_SHADER
  45.             rect        -18 -10 8 8
  46.             background    "gfx/menus/ingame/frame_topleft.png"
  47.             visible        1
  48.             decoration
  49.         }
  50.  
  51.         itemDef
  52.         {
  53.             name        window
  54.             style        WINDOW_STYLE_SHADER
  55.             rect        -12 -10 308 8
  56.             background    "gfx/menus/ingame/frame_top.png"
  57.             visible        1
  58.             decoration
  59.         }
  60.  
  61.         itemDef
  62.         {
  63.             name        window
  64.             style        WINDOW_STYLE_SHADER
  65.             rect        296 -10 8 8
  66.             background    "gfx/menus/ingame/frame_topright.png"
  67.             visible        1
  68.             decoration
  69.         }
  70.  
  71.         itemDef
  72.         {
  73.             name        window
  74.             style        WINDOW_STYLE_SHADER
  75.             rect        -18 190 8 8
  76.             background    "gfx/menus/ingame/frame_bottomleft.png"
  77.             visible        1
  78.             decoration
  79.         }
  80.  
  81.         itemDef
  82.         {
  83.             name        window
  84.             style        WINDOW_STYLE_SHADER
  85.             rect        -12 190 308 8
  86.             background    "gfx/menus/ingame/frame_bottom.png"
  87.             visible        1
  88.             decoration
  89.         }
  90.  
  91.         itemDef
  92.         {
  93.             name        window
  94.             style        WINDOW_STYLE_SHADER
  95.             rect        296 190 8 8
  96.             background    "gfx/menus/ingame/frame_bottomright.png"
  97.             visible        1
  98.             decoration
  99.         }
  100.  
  101.         itemDef
  102.         {
  103.             name        window
  104.             style        WINDOW_STYLE_SHADER
  105.             rect        296 -5 8 195
  106.             background    "gfx/menus/ingame/frame_right.png"
  107.             visible        1
  108.             decoration
  109.         }
  110.  
  111.         itemDef
  112.         {
  113.             name        window
  114.             style        WINDOW_STYLE_SHADER
  115.             rect        -18 -5 8 195
  116.             background    "gfx/menus/ingame/frame_left.png"
  117.             visible        1
  118.             decoration
  119.         }
  120.  
  121.         ////////////////////////////////////////////////////////////////////////
  122.         //  Top Buttons
  123.         ////////////////////////////////////////////////////////////////////////
  124.  
  125.         itemDef 
  126.         {
  127.             name        ctr_misc
  128.             group        grpbutton
  129.             type        ITEM_TYPE_BUTTON
  130.             style        WINDOW_STYLE_FILLED
  131.             rect        -4 5 54 20
  132.             text        "Misc"
  133.             textalign    1
  134.             textalignx    22
  135.             textaligny    2
  136.             textfont    "hud"
  137.             textscale    .43
  138.             forecolor    .12 .14 .08 1
  139.             backcolor    0 0 0 0
  140.             visible        1
  141.             border        1
  142.             bordercolor    0 0 0 1
  143.             
  144.             action 
  145.             { 
  146.                 play "sound/misc/menus/select.wav" ; 
  147.  
  148.                 hide grpCallVote ; 
  149.                 hide gametype_group;
  150.                 hide kick_group;
  151.                 hide map_group;
  152.                 hide rmg_group;                
  153.  
  154.                 show misc_group; 
  155.             }
  156.             mouseEnter 
  157.             { 
  158.                 play "sound/misc/menus/hilite1.wav" ; 
  159.                 setitemcolor ctr_misc backcolor .12 .14 .08 1
  160.                 setitemcolor ctr_misc forecolor .49 .56 .27 1
  161.             }
  162.               mouseExit 
  163.             { 
  164.                 setitemcolor ctr_misc forecolor .12 .14 .08 1
  165.                 setitemcolor ctr_misc backcolor 0 0 0 0
  166.             }
  167.         }
  168.  
  169.         itemDef 
  170.         {
  171.             name        ctr_gametype
  172.             group        grpbutton
  173.             type        ITEM_TYPE_BUTTON
  174.             style        WINDOW_STYLE_FILLED
  175.             rect        55 5 54 20
  176.             text        "Type"
  177.             textalign    1
  178.             textalignx    22
  179.             textaligny    2
  180.             textfont    "hud"
  181.             textscale    .43
  182.             forecolor    .12 .14 .08 1
  183.             backcolor    0 0 0 0
  184.             visible        1
  185.             border        1
  186.             bordercolor    0 0 0 1
  187.  
  188.             action 
  189.             { 
  190.                 play "sound/misc/menus/select.wav" ; 
  191.  
  192.                 hide grpCallVote ; 
  193.                 hide misc_group;
  194.                 hide kick_group;
  195.                 hide map_group;
  196.                 hide rmg_group;                
  197.  
  198.                 show gametype_group
  199.             }
  200.             mouseEnter 
  201.             { 
  202.                 play "sound/misc/menus/hilite1.wav" ; 
  203.                 setitemcolor ctr_gametype backcolor .12 .14 .08 1
  204.                 setitemcolor ctr_gametype forecolor .49 .56 .27 1
  205.             }
  206.               mouseExit 
  207.             { 
  208.                 setitemcolor ctr_gametype forecolor .12 .14 .08 1
  209.                 setitemcolor ctr_gametype backcolor 0 0 0 0
  210.             }
  211.         }
  212.  
  213.         itemDef 
  214.         {
  215.             name        ctr_kickplayer
  216.             group        grpbutton
  217.             type        ITEM_TYPE_BUTTON
  218.             style        WINDOW_STYLE_FILLED
  219.             rect        114 5 54 20
  220.             text        "Kick"
  221.             textalign    1
  222.             textalignx    22
  223.             textaligny    2
  224.             textfont    "hud"
  225.             textscale    .43
  226.             forecolor    .12 .14 .08 1
  227.             backcolor    0 0 0 0
  228.             visible        1
  229.             border        1
  230.             bordercolor    0 0 0 1
  231.  
  232.             action 
  233.             { 
  234.                 play "sound/misc/menus/select.wav" ; 
  235.  
  236.                 hide grpCallVote ; 
  237.                 hide misc_group ;
  238.                 hide gametype_group;
  239.                 hide map_group;
  240.                 hide rmg_group;                
  241.  
  242.                 show kick_group
  243.             }
  244.             mouseEnter 
  245.             { 
  246.                 play "sound/misc/menus/hilite1.wav" ; 
  247.                 setitemcolor ctr_kickplayer backcolor .12 .14 .08 1
  248.                 setitemcolor ctr_kickplayer forecolor .49 .56 .27 1
  249.             }
  250.               mouseExit 
  251.             { 
  252.                 setitemcolor ctr_kickplayer forecolor .12 .14 .08 1
  253.                 setitemcolor ctr_kickplayer backcolor 0 0 0 0
  254.             }
  255.         }
  256.  
  257.         itemDef 
  258.         {
  259.             name        ctr_changemap
  260.             group        grpbutton
  261.             type        ITEM_TYPE_BUTTON
  262.             style        WINDOW_STYLE_FILLED
  263.             rect        173 5 54 20
  264.             text        "Map"
  265.             textalign    1
  266.             textalignx    22
  267.             textaligny    2
  268.             textfont    "hud"
  269.             textscale    .43
  270.             forecolor    .12 .14 .08 1
  271.             backcolor    0 0 0 0
  272.             visible        1
  273.             border        1
  274.             bordercolor    0 0 0 1
  275.  
  276.             action 
  277.             { 
  278.                 play "sound/misc/menus/select.wav" ; 
  279.  
  280.                 hide grpCallVote ; 
  281.                 hide misc_group;
  282.                 hide gametype_group;
  283.                 hide kick_group;                
  284.                 hide rmg_group;                
  285.  
  286.                 show map_group;
  287.             }
  288.             mouseEnter 
  289.             { 
  290.                 play "sound/misc/menus/hilite1.wav" ; 
  291.                 setitemcolor ctr_changemap backcolor .12 .14 .08 1
  292.                 setitemcolor ctr_changemap forecolor .49 .56 .27 1
  293.             }
  294.               mouseExit 
  295.             { 
  296.                 setitemcolor ctr_changemap forecolor .12 .14 .08 1
  297.                 setitemcolor ctr_changemap backcolor 0 0 0 0
  298.             }
  299.         }
  300.  
  301.         itemDef 
  302.         {
  303.             name        ctr_randomsettings
  304.             group        grpbutton
  305.             type        ITEM_TYPE_BUTTON
  306.             style        WINDOW_STYLE_FILLED
  307.             rect        232 5 54 20
  308.             text        "RMG"
  309.             textalign    1
  310.             textalignx    26
  311.             textaligny    2
  312.             textfont    "hud"
  313.             textscale    .43
  314.             forecolor    .12 .14 .08 1
  315.             backcolor    0 0 0 0
  316.             visible        1
  317.             border        1
  318.             bordercolor    0 0 0 1
  319.  
  320.             action 
  321.             { 
  322.                 play "sound/misc/menus/select.wav" ; 
  323.  
  324.                 hide grpCallVote ; 
  325.                 hide misc_group;
  326.                 hide gametype_group;
  327.                 hide kick_group;                
  328.                 hide map_group;
  329.  
  330.                 show rmg_group;
  331.             }
  332.             mouseEnter 
  333.             { 
  334.                 play "sound/misc/menus/hilite1.wav" ; 
  335.                 setitemcolor ctr_randomsettings backcolor .12 .14 .08 1
  336.                 setitemcolor ctr_randomsettings forecolor .49 .56 .27 1
  337.             }
  338.               mouseExit 
  339.             { 
  340.                 setitemcolor ctr_randomsettings forecolor .12 .14 .08 1
  341.                 setitemcolor ctr_randomsettings backcolor 0 0 0 0
  342.             }
  343.         }
  344.  
  345.         itemDef
  346.         {
  347.             style        WINDOW_STYLE_FILLED
  348.             rect        -4 35 296 1
  349.             backcolor    0 0 0 1
  350.             visible        1
  351.             decoration
  352.         }
  353.  
  354.         ////////////////////////////////////////////////////////////////////////
  355.         //     MISC
  356.         ////////////////////////////////////////////////////////////////////////
  357.          
  358.         itemDef 
  359.         {
  360.             name        restartmap_button
  361.             group        misc_group
  362.             type        ITEM_TYPE_BUTTON
  363.             style        WINDOW_STYLE_FILLED
  364.             rect        50 65 190 20
  365.             text        "Restart Map"
  366.             textalign    1
  367.             textalignx    95
  368.             textaligny    2
  369.             textfont    "hud"
  370.             textscale    .43
  371.             forecolor    .12 .14 .08 1
  372.             backcolor    0 0 0 0
  373.             visible        1
  374.             border        1
  375.             bordercolor    0 0 0 1
  376.             
  377.             action 
  378.             { 
  379.                 play "sound/misc/menus/select.wav" ; 
  380.  
  381.                 exec "cmd callvote map_restart" ; 
  382.                 uiScript closeingame 
  383.             }
  384.             mouseEnter 
  385.             { 
  386.                 play "sound/misc/menus/hilite1.wav" ; 
  387.                 setitemcolor restartmap_button backcolor .12 .14 .08 1
  388.                 setitemcolor restartmap_button forecolor .49 .56 .27 1
  389.             }
  390.               mouseExit 
  391.             { 
  392.                 setitemcolor restartmap_button forecolor .12 .14 .08 1
  393.                 setitemcolor restartmap_button backcolor 0 0 0 0
  394.             }
  395.         }
  396.  
  397.         itemDef 
  398.         {
  399.             name        nextmap_button
  400.             group        misc_group
  401.             type        ITEM_TYPE_BUTTON
  402.             style        WINDOW_STYLE_FILLED
  403.             rect        50 95 190 20
  404.             text        "Next Map"
  405.             textalign    1
  406.             textalignx    95
  407.             textaligny    2
  408.             textfont    "hud"
  409.             textscale    .43
  410.             forecolor    .12 .14 .08 1
  411.             backcolor    0 0 0 0
  412.             visible        1
  413.             border        1
  414.             bordercolor    0 0 0 1
  415.  
  416.             action 
  417.             { 
  418.                 play "sound/misc/menus/select.wav" ; 
  419.  
  420.                 exec "cmd callvote mapcycle" ; 
  421.                 uiScript closeingame 
  422.             }
  423.             mouseEnter 
  424.             { 
  425.                 play "sound/misc/menus/hilite1.wav" ; 
  426.                 setitemcolor nextmap_button backcolor .12 .14 .08 1
  427.                 setitemcolor nextmap_button forecolor .49 .56 .27 1
  428.             }
  429.               mouseExit 
  430.             { 
  431.                 setitemcolor nextmap_button forecolor .12 .14 .08 1
  432.                 setitemcolor nextmap_button backcolor 0 0 0 0
  433.             }
  434.         }
  435.  
  436.         itemDef 
  437.         {
  438.             name        dowarmup_button
  439.             group        misc_group
  440.             type        ITEM_TYPE_BUTTON
  441.             style        WINDOW_STYLE_FILLED
  442.             rect        50 125 190 20
  443.             text        "Do Warmup"
  444.             textalign    1
  445.             textalignx    95
  446.             textaligny    2
  447.             textfont    "hud"
  448.             textscale    .43
  449.             forecolor    .12 .14 .08 1
  450.             backcolor    0 0 0 0
  451.             visible        1
  452.             border        1
  453.             bordercolor    0 0 0 1
  454.  
  455.             action 
  456.             { 
  457.                 play "sound/misc/menus/select.wav" ; 
  458.  
  459.                 exec "cmd callvote g_doWarmup 1" ; 
  460.                 uiScript closeingame 
  461.             }
  462.             mouseEnter 
  463.             { 
  464.                 play "sound/misc/menus/hilite1.wav" ; 
  465.                 setitemcolor dowarmup_button backcolor .12 .14 .08 1
  466.                 setitemcolor dowarmup_button forecolor .49 .56 .27 1
  467.             }
  468.               mouseExit 
  469.             { 
  470.                 setitemcolor dowarmup_button forecolor .12 .14 .08 1
  471.                 setitemcolor dowarmup_button backcolor 0 0 0 0
  472.             }
  473.         }
  474.  
  475.         itemDef 
  476.         {
  477.             name        extendtime_button
  478.             group        misc_group
  479.             type        ITEM_TYPE_BUTTON
  480.             style        WINDOW_STYLE_FILLED
  481.             rect        50 155 190 20
  482.             text        "Extend Time"
  483.             textalign    1
  484.             textalignx    95
  485.             textaligny    2
  486.             textfont    "hud"
  487.             textscale    .43
  488.             forecolor    .12 .14 .08 1
  489.             backcolor    0 0 0 0
  490.             visible        1
  491.             border        1
  492.             bordercolor    0 0 0 1
  493.  
  494.             action 
  495.             { 
  496.                 play "sound/misc/menus/select.wav" ; 
  497.  
  498.                 exec "cmd callvote timeextension" ; 
  499.                 uiScript closeingame 
  500.             }
  501.             mouseEnter 
  502.             { 
  503.                 play "sound/misc/menus/hilite1.wav" ; 
  504.                 setitemcolor extendtime_button backcolor .12 .14 .08 1
  505.                 setitemcolor extendtime_button forecolor .49 .56 .27 1
  506.             }
  507.               mouseExit 
  508.             { 
  509.                 setitemcolor extendtime_button forecolor .12 .14 .08 1
  510.                 setitemcolor extendtime_button backcolor 0 0 0 0
  511.             }
  512.         }
  513.  
  514.  
  515.         ////////////////////////////////////////////////////////////////////////
  516.         // Game Type 
  517.         ////////////////////////////////////////////////////////////////////////
  518.  
  519.         itemDef 
  520.         {
  521.             name        gametype
  522.             group        gametype_group
  523.             style        WINDOW_STYLE_FILLED
  524.             ownerdraw    UI_NETGAMETYPE
  525.             rect        50 90 200 20
  526.             text        "Gametype:"
  527.             textalign    10
  528.             textalignx    0
  529.             textaligny    2
  530.             textfont    "hud"
  531.             textscale    .43
  532.             forecolor    .12 .14 .08 1
  533.             backcolor    0 0 0 0
  534.             visible        1
  535.  
  536.             mouseEnter 
  537.             { 
  538.                 play "sound/misc/menus/hilite1.wav" ; 
  539.                 setitemcolor gametype backcolor .12 .14 .08 1
  540.                 setitemcolor gametype forecolor .49 .56 .27 1
  541.             }
  542.               mouseExit 
  543.             { 
  544.                 setitemcolor gametype forecolor .12 .14 .08 1
  545.                 setitemcolor gametype backcolor 0 0 0 0
  546.             }
  547.         }
  548.  
  549.         itemDef 
  550.         {
  551.             name        gametype_ok_button
  552.             group        gametype_group
  553.             type        ITEM_TYPE_BUTTON
  554.             style        WINDOW_STYLE_FILLED
  555.             rect        117 155 50 20
  556.             text        "OK"
  557.             textalign    1
  558.             textalignx    23
  559.             textaligny    2
  560.             textfont    "hud"
  561.             textscale    .43
  562.             forecolor    .12 .14 .08 1
  563.             backcolor    0 0 0 0
  564.             visible        1
  565.             border        1
  566.             bordercolor    0 0 0 1
  567.     
  568.             action 
  569.             { 
  570.                 play "sound/misc/menus/select.wav" ; 
  571.  
  572.                 uiScript voteGame ; 
  573.                 uiScript closeingame 
  574.             }
  575.             mouseEnter 
  576.             { 
  577.                 play "sound/misc/menus/hilite1.wav" ; 
  578.                 setitemcolor gametype_ok_button backcolor .12 .14 .08 1
  579.                 setitemcolor gametype_ok_button forecolor .49 .56 .27 1
  580.             }
  581.               mouseExit 
  582.             { 
  583.                 setitemcolor gametype_ok_button forecolor .12 .14 .08 1
  584.                 setitemcolor gametype_ok_button backcolor 0 0 0 0
  585.             }
  586.         }
  587.  
  588.         ////////////////////////////////////////////////////////////////////////
  589.         //     KICK PLAYER
  590.         ////////////////////////////////////////////////////////////////////////
  591.  
  592.         itemDef 
  593.         {
  594.             name        kick_text
  595.             group        kick_group
  596.             rect        25 45 110 20
  597.             text        "Kick Player:"
  598.             textalign    0
  599.             textalignx    0
  600.             textaligny    2
  601.             textfont    "hud"
  602.             textscale    .43
  603.             forecolor    .12 .14 .08 1
  604.             backcolor    0 0 0 0
  605.             visible        1
  606.             decoration
  607.         }
  608.  
  609.         itemDef 
  610.         {
  611.               name            kick_list
  612.             group            kick_group
  613.             type            ITEM_TYPE_LISTBOX
  614.             feeder            FEEDER_PLAYER_LIST
  615.             style            WINDOW_STYLE_FILLED
  616.                rect            20 65 250 80
  617.             elementwidth    120
  618.             elementheight    15
  619.             textaligny        -13
  620.             elementtype        LISTBOX_TEXT
  621.             textfont    "hud"
  622.             textscale    .43
  623.             border            1
  624.             bordercolor        0 0 0 1
  625.             forecolor        1 1 1 1
  626.             backcolor        0 0 0 .25
  627.             outlinecolor    .12 .14 .08 1
  628.             visible            0
  629.         }
  630.  
  631.         itemDef 
  632.         {
  633.             name            kick_ok_button
  634.             group            kick_group
  635.             type            ITEM_TYPE_BUTTON
  636.             style            WINDOW_STYLE_FILLED
  637.             rect            117 155 50 20
  638.             text            "OK"
  639.             textalign        1
  640.             textalignx        23
  641.             textaligny        2
  642.             textfont    "hud"
  643.             textscale    .43
  644.             forecolor        .12 .14 .08 1
  645.             backcolor        0 0 0 0
  646.             border            1
  647.             bordercolor        0 0 0 1
  648.             visible            0
  649.             
  650.             action 
  651.             { 
  652.                 play "sound/misc/menus/select.wav" ; 
  653.  
  654.                 uiScript voteKick ; 
  655.                 uiScript closeingame 
  656.             }
  657.             mouseEnter 
  658.             { 
  659.                 play "sound/misc/menus/hilite1.wav" ; 
  660.                 setitemcolor kick_ok_button backcolor .12 .14 .08 1
  661.                 setitemcolor kick_ok_button forecolor .49 .56 .27 1
  662.             }
  663.               mouseExit 
  664.             { 
  665.                 setitemcolor kick_ok_button forecolor .12 .14 .08 1
  666.                 setitemcolor kick_ok_button backcolor 0 0 0 0
  667.             }
  668.         }
  669.  
  670.         ////////////////////////////////////////////////////////////////////////
  671.         //     NEW MAP
  672.         ////////////////////////////////////////////////////////////////////////
  673.  
  674.         itemDef 
  675.         {
  676.             name        window
  677.             group        map_group
  678.             ownerdraw    UI_ALLMAPS_SELECTION 
  679.             rect        25 45 110 20
  680.             text        "New Map:"
  681.             textalign    0
  682.             textalignx    0
  683.             textaligny    2
  684.             textfont    "hud"
  685.             textscale    .43
  686.             forecolor    .12 .14 .08 1
  687.             visible        0
  688.             decoration
  689.         }
  690.  
  691.         itemDef 
  692.         {
  693.             name            window
  694.             group            map_group
  695.               rect            20 65 250 80
  696.             type            ITEM_TYPE_LISTBOX
  697.             style            WINDOW_STYLE_FILLED
  698.             elementwidth    120
  699.             elementheight    15
  700.             textfont    "hud"
  701.             textscale    .43
  702.             textaligny        -13
  703.             elementtype        LISTBOX_TEXT
  704.             feeder            FEEDER_VOTEMAPS
  705.             border            1
  706.             bordercolor        0 0 0 1
  707.             forecolor        1 1 1 1
  708.             backcolor        0 0 0 .25
  709.             outlinecolor    .12 .14 .08 1
  710.           }
  711.  
  712.  
  713.         itemDef 
  714.         {
  715.             name        map_ok_button
  716.             group        map_group
  717.             type        ITEM_TYPE_BUTTON
  718.             style        WINDOW_STYLE_FILLED
  719.             rect        117 155 50 20
  720.             text        "OK"
  721.             textalign    1
  722.             textalignx    23
  723.             textaligny    2
  724.             textfont    "hud"
  725.             textscale    .43
  726.             forecolor    .12 .14 .08 1
  727.             backcolor    0 0 0 0
  728.             visible        1
  729.             border        1
  730.             bordercolor    0 0 0 1
  731.     
  732.             action 
  733.             { 
  734.                 play "sound/misc/menus/select.wav" ; 
  735.  
  736.                 uiScript voteMap ; 
  737.                 uiScript closeingame 
  738.             }
  739.             mouseEnter 
  740.             { 
  741.                 play "sound/misc/menus/hilite1.wav" ; 
  742.                 setitemcolor map_ok_button backcolor .12 .14 .08 1
  743.                 setitemcolor map_ok_button forecolor .49 .56 .27 1
  744.             }
  745.               mouseExit 
  746.             { 
  747.                 setitemcolor map_ok_button forecolor .12 .14 .08 1
  748.                 setitemcolor map_ok_button backcolor 0 0 0 0
  749.             }
  750.         }
  751.  
  752.         ////////////////////////////////////////////////////////////////////////
  753.         //     RMG
  754.         ////////////////////////////////////////////////////////////////////////
  755.         itemDef 
  756.         {
  757.               name            rmg_location_field
  758.             group            rmg_group
  759.               type            ITEM_TYPE_MULTI
  760.             style            WINDOW_STYLE_FILLED
  761.             text            "Location:"
  762.         
  763.             cvar            "ui_rmg_config"
  764.             cvarStrList        { "Desert","desert","Hills","grassyhills","Jungle","jungle","Snow","snowy","Random","?" }
  765.             rect            50 50 190 15
  766.             textalign        ITEM_ALIGN_RIGHT
  767.             textalignx        90
  768.             textaligny        0
  769.             textfont    "hud"
  770.             textscale    .43
  771.              forecolor        .12 .14 .08 1
  772.             backcolor        0 0 0 0
  773.             visible            1 
  774.  
  775.             action 
  776.             { 
  777.                 play "sound/misc/menus/select.wav" ; 
  778.             }
  779.  
  780.             mouseEnter
  781.             {
  782.                 play "sound/misc/menus/hilite1.wav" ; 
  783.                 setitemcolor rmg_location_field backcolor .12 .14 .08 1
  784.                 setitemcolor rmg_location_field forecolor .49 .56 .27 1
  785.             }
  786.  
  787.             mouseExit
  788.             {
  789.                 setitemcolor rmg_location_field backcolor 0 0 0 0
  790.                 setitemcolor rmg_location_field forecolor .12 .14 .08 1
  791.             }
  792.         }
  793.  
  794.         itemDef 
  795.         {
  796.               name            rmg_size_field
  797.             group            rmg_group
  798.               type            ITEM_TYPE_MULTI
  799.             style            WINDOW_STYLE_FILLED
  800.             text            "Size:"
  801.         
  802.             cvar            "ui_rmg_size"
  803.             cvarStrList        { "Small","small","Medium","medium" }
  804.             rect            50 65 190 15
  805.             textalign        ITEM_ALIGN_RIGHT
  806.             textalignx        90
  807.             textaligny        0
  808.             textfont        "hud"
  809.             textscale        .43
  810.              forecolor        .12 .14 .08 1
  811.             backcolor        0 0 0 0
  812.             visible            1 
  813.  
  814.             action 
  815.             { 
  816.                 play "sound/misc/menus/select.wav" ; 
  817.             }
  818.  
  819.             mouseEnter
  820.             {
  821.                 play "sound/misc/menus/hilite1.wav" ; 
  822.                 setitemcolor rmg_size_field backcolor .12 .14 .08 1
  823.                 setitemcolor rmg_size_field forecolor .49 .56 .27 1
  824.             }
  825.  
  826.             mouseExit
  827.             {
  828.                 setitemcolor rmg_size_field backcolor 0 0 0 0
  829.                 setitemcolor rmg_size_field forecolor .12 .14 .08 1
  830.             }
  831.         }
  832.  
  833.         itemDef 
  834.         {
  835.               name            rmg_time_field
  836.             group            rmg_group
  837.               type            ITEM_TYPE_MULTI
  838.             style            WINDOW_STYLE_FILLED
  839.             text            "Time of Day:"
  840.         
  841.             cvar            "ui_rmg_time"
  842.             cvarStrList        { "Morning", "morning", "Day","day","Night","night","Random","?" }
  843.             rect            50 80 190 15
  844.             textalign        ITEM_ALIGN_RIGHT
  845.             textalignx        90
  846.             textaligny        0
  847.             textfont        "hud"
  848.             textscale        .43
  849.              forecolor        .12 .14 .08 1
  850.             backcolor        0 0 0 0
  851.             visible            1 
  852.  
  853.             action 
  854.             { 
  855.                 play "sound/misc/menus/select.wav" ; 
  856.             }
  857.  
  858.             mouseEnter
  859.             {
  860.                 play "sound/misc/menus/hilite1.wav" ; 
  861.                 setitemcolor rmg_time_field backcolor .12 .14 .08 1
  862.                 setitemcolor rmg_time_field forecolor .49 .56 .27 1
  863.             }
  864.  
  865.             mouseExit
  866.             {
  867.                 setitemcolor rmg_time_field backcolor 0 0 0 0
  868.                 setitemcolor rmg_time_field forecolor .12 .14 .08 1
  869.             }
  870.         }
  871.  
  872.         itemDef 
  873.         {
  874.               name            seed_field
  875.             group            rmg_group
  876.               type            ITEM_TYPE_EDITFIELD
  877.             style            WINDOW_STYLE_FILLED
  878.             text            "Seed:"
  879.             maxChars        20
  880.             maxPaintChars    20
  881.             cvar            "ui_rmg_seed"
  882.             rect            50 95 190 15
  883.             textalign        ITEM_ALIGN_RIGHT
  884.             textalignx        90
  885.             textaligny        0
  886.             textfont        "hud"
  887.             textscale        .43
  888.              forecolor        .12 .14 .08 1
  889.             backcolor        0 0 0 0
  890.             visible            1 
  891.  
  892.             action 
  893.             { 
  894.                 play "sound/misc/menus/select.wav" ; 
  895.             }
  896.  
  897.             mouseEnter
  898.             {
  899.                 play "sound/misc/menus/hilite1.wav" ; 
  900.                 setitemcolor seed_field backcolor .12 .14 .08 1
  901.                 setitemcolor seed_field forecolor .49 .56 .27 1
  902.             }
  903.  
  904.             mouseExit
  905.             {
  906.                 setitemcolor seed_field backcolor 0 0 0 0
  907.                 setitemcolor seed_field forecolor .12 .14 .08 1
  908.             }
  909.         }
  910.  
  911.         itemDef 
  912.         {
  913.             name        randomsettings_button
  914.             group        rmg_group
  915.             text        "Random Settings"
  916.             type        ITEM_TYPE_BUTTON
  917.             style        WINDOW_STYLE_FILLED
  918.             rect        80 115 120 20
  919.  
  920.             textfont    "hud"
  921.             textscale    .43
  922.             textalign    0
  923.               textalignx    8
  924.              textaligny    2
  925.             forecolor    .12 .14 .08 1
  926.             backcolor    0 0 0 0
  927.             visible        1
  928.             border        1
  929.             bordercolor    0 0 0 1
  930.             
  931.             action 
  932.             { 
  933.                 play "sound/misc/menus/select.wav" ; 
  934.                 uiScript RMGRandomSettings
  935. //                close cdkey_popmenu ; 
  936.             }
  937.             mouseEnter 
  938.             { 
  939.                 play "sound/misc/menus/hilite1.wav" ; 
  940.                 setitemcolor randomsettings_button backcolor .12 .14 .08 1
  941.                 setitemcolor randomsettings_button forecolor .49 .56 .27 1
  942.             }                 
  943.             mouseExit 
  944.             { 
  945.                 setitemcolor randomsettings_button backcolor 0 0 0 0
  946.                 setitemcolor randomsettings_button forecolor .12 .14 .08 1
  947.             }
  948.         }
  949.  
  950.         itemDef 
  951.         {
  952.             name        rmg_ok_button
  953.             group        rmg_group
  954.             type        ITEM_TYPE_BUTTON
  955.             style        WINDOW_STYLE_FILLED
  956.             rect        117 155 50 20
  957.             text        "OK"
  958.             textalign    1
  959.             textalignx    23
  960.             textaligny    2
  961.             textfont        "hud"
  962.             textscale        .43
  963.             forecolor    .12 .14 .08 1
  964.             backcolor    0 0 0 0
  965.             visible        1
  966.             border        1
  967.             bordercolor    0 0 0 1
  968.     
  969.             action 
  970.             { 
  971.                 play "sound/misc/menus/select.wav" ; 
  972.  
  973.                 uiScript voteRMG ; 
  974.                 uiScript closeingame 
  975.             }
  976.             mouseEnter 
  977.             { 
  978.                 play "sound/misc/menus/hilite1.wav" ; 
  979.                 setitemcolor rmg_ok_button backcolor .12 .14 .08 1
  980.                 setitemcolor rmg_ok_button forecolor .49 .56 .27 1
  981.             }
  982.               mouseExit 
  983.             { 
  984.                 setitemcolor rmg_ok_button forecolor .12 .14 .08 1
  985.                 setitemcolor rmg_ok_button backcolor 0 0 0 0
  986.             }
  987.         }
  988.     }
  989. }
  990.